package com.yjm.test.Spring5.ch5.aop;

import org.springframework.stereotype.Component;

import com.yjm.test.Spring5.ch5.Guitar;
import com.yjm.test.Spring5.ch5.Singer;

@Component("JohnMayer")
public class GrammyGuitarist implements Singer {

	@Override
	public void sing() {
		System.out.println("\tsing: Gravity is working against me\n" +
				"\t\tAnd gravity wants to bring me down");
	}
	public void sing(Guitar guitar) {
		System.out.println("play: " + guitar.play());
	}
	
	public void rest() {
		System.out.println("zzz");
	}
	public void talk() {
		System.out.println("talk");
	}

}
